<?php
    if (!defined('APPPATH')) exit('No direct script access allowed');

    require_once(APPPATH.'libraries/utils/translation/class.translation.php');
    
    if(isset($_GET['lang']))
        $translate = new Translation($_GET['lang'], true);
    else {
        if(!empty($lang))
            $translate = new Translation($lang, true);
        else
            $translate = new Translation('en', true);
    }
?>

<form method="POST" action="<?php echo site_url() . "/admin/language_controller/update/" . $language_id; ?>">
    <table cellpadding="0" cellspacing="0" width="100%">
        <thead>
            <tr>
                <th colspan="2"><?php $translate->__('Update language'); ?></th>
            </tr>
        </thead>
            <tbody>
                <tr>
                    <td><?php $translate->__('Name'); ?></td>
                    <td><input type="text" name="name" value="<?php echo $name; ?>"></td>
                </tr>
            </tbody>
            <tfoot>
                <td colspan="2">
                    <button><?php $translate->__('Update language'); ?></button>
                </td>
            </tfoot>
    </table>
</form>